package beanstao.util.response;

import org.dom4j.Element;


public class ElementData extends PD
{
	private ElementData()
	{
	}

	static ElementData ME(Element ele)
	{
		ElementData data = new ElementData();
		data._responseData = ele;
		return data;
	}

	@Override
	public String toJson()
	{
		if (null == _responseData)
		{
			this.logWarn("Response数据为空。");
			return null;
		}
		return ((Element) _responseData).asXML();
	}
}
